import type { AppRouteRecordRaw } from "../types";

import { REDIRECT_ROUTE, PAGE_NOT_FOUND_ROUTE } from "./basic";

// 根路由
export const RootRoute: AppRouteRecordRaw = {
  path: "/",
  name: "Root",
  redirect: PageEnum.BASE_HOME,
  meta: {
    title: "Root",
  },
};

// 登录路由
export const LoginRoute: AppRouteRecordRaw = {
  path: "/login",
  name: "Login",
  component: () => import("@/views/login/index.vue"),
  meta: {
    title: "Login",
  },
};

// 基本路由（无权限）
export const basicRoutes: AppRouteRecordRaw[] = [
  RootRoute,
  LoginRoute,
  REDIRECT_ROUTE,
  PAGE_NOT_FOUND_ROUTE,
];
